﻿@{
    var currentPage = ViewContext.RouteData.Values["Page"]?.ToString();
}

<div class="admin-toolbar ps-4 pe-4 pt-2 pb-2 border-bottom mb-3 shadow-sm d-flex">
    <ul class="nav nav-pills">
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/General" ? "active" : null)" asp-page="./General">@SharedLocalizer["General"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/Content" ? "active" : null)" asp-page="./Content">@SharedLocalizer["Content"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/Image" ? "active" : null)" asp-page="./Image">@SharedLocalizer["Image"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/Subscription" ? "active" : null)" asp-page="./Subscription">@SharedLocalizer["Subscription"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/CustomStyleSheet" ? "active" : null)" asp-page="./CustomStyleSheet">@SharedLocalizer["Custom CSS"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/Notification" ? "active" : null)" asp-page="./Notification">@SharedLocalizer["Notification"]</a>
        </li>
        <li role="presentation" class="nav-item nav-item-non-margin">
            <a class="nav-link @(currentPage == "/Settings/Advanced" ? "active" : null)" asp-page="./Advanced">@SharedLocalizer["Advanced"]</a>
        </li>
    </ul>
</div>